package com.biz.primus.model.misc.utils;


import com.biz.primus.model.misc.enums.SignaturePosition;

/**
 * @author yanweijin
 * @date 2017/6/5
 */
public class MessageTextUtils {

	public static String getMessageFullText(SignaturePosition signaturePosition, String signature, String content){
		signaturePosition = signaturePosition==null ? SignaturePosition.tail : signaturePosition;
		switch (signaturePosition){
			case head:
				return String.format("【%s】%s", signature, content);
			case tail:
			default:
				return String.format("%s【%s】",content, signature);

		}
	}

}
